package com.wuze.cloud.service;

import com.wuze.cloud.request.*;
import com.wuze.cloud.response.PreCheckResponse;
import com.wuze.cloud.response.SysFileResponse;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author: wuze
 * @description:
 * @date: 2023/02/20
 */
public interface SysFileService {
    SysFileResponse findByPage(SysFileQuery query);
    SysFileResponse findPageByAdmin(SysAdminFileQuery query);

    PreCheckResponse preCheck(SysFilePreCheckQuery query);

    void upload(SysFileChunkQuery query) throws Exception;

    void batchDownload(SysDownloadQuery query , HttpServletResponse response);

    void batchdelete(SysDeleteFileQuery query);

    void batchdeleteAdmin(List<SysDeleteFileAdminQuery> querys);

    void update(SysUpdateFileQuery query);

    void batchRestoreAdmin(List<SysAdminRestoreQuery> querys);
}
